<%--
  Created by IntelliJ IDEA.
  User: MeUChT
  Date: 2021/12/23
  Time: 18:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录成功</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    request.setAttribute("msg","用户名或密码错误，请重新输入");

    if (username.equals("abc")&&password.equals("123")){

        request.getRequestDispatcher("third.jsp").forward(request,response);
    }else {

        request.getRequestDispatcher("first.jsp").forward(request,response);
    }

%>

</body>
</html>